@import url("./theme.css");

@font-face {
  font-family: "汉仪霹雳体简";
  src: url("~@/assets/font/汉仪霹雳体简.woff");
  font-display: swap;
}

@font-face {
  font-family: "font";
  src: url("~@/assets/font/HarmonyOS_Sans_SC_Medium.subset.woff2");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: auto !important;
  background-color: #374140 !important;
  position: relative;
  overflow-x: hidden;
  overflow-y: overlay;
}

#root {
  font-size: 16px;
  font-family: "font" !important;

  @media screen and (max-width: 500px) {
    font-size: 19px;
  }
  overflow: hidden;
}

.center {
  max-width: var(--heart-width);
  margin: 0 auto;
  &:after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }
}

.box-shadow {
  box-shadow: 0 15px 35px rgb(50 50 93 / 10%), 0 5px 15px rgb(0 0 0 / 7%);
}

.primaryColor {
  color: var(--ant-primary-color);
}

#nprogress .bar {
  background: var(--ant-primary-color);
}

p {
  margin-bottom: 1em;
}

::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px;
  /*高宽分别对应横竖滚动条的尺寸*/
  background-color: #fff;
  position: fixed;
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ededed;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: var(--ant-primary-3);
  background-image: -webkit-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
}
